//
//  RMMConfirmOrderView.m
//  Romomo
//
//  Created by puman on 16/10/10.
//  Copyright © 2016年 mazegong. All rights reserved.
//

#import "RMMConfirmOrderView.h"

@implementation RMMConfirmOrderView

- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = kWhiteColor;
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(15, 0, 30, self.height)];
        label.text = @"总计:";
        label.textColor = COLORFROMCODE(0x303137 , 1);
        label.font = kFont(12);
        [self addSubview:label];
        
        _totalPrice = [[UILabel alloc] initWithFrame:CGRectMake(label.right, 0, kScreenWideth - 145 - label.right, self.height)];
        _totalPrice.textColor = kBasicColor;
        _totalPrice.font = kFont(18);
        _totalPrice.text = @"¥ 0.00";
        [self addSubview:_totalPrice];
        
        UILabel *lineLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.width, 0.5)];
        lineLabel.backgroundColor = RGBA(221, 221, 221, 1);
        [self addSubview:lineLabel];
        
        _confirmOderBut = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _confirmOderBut.frame = CGRectMake(kScreenWideth - 145, 7, 130, 35);
        _confirmOderBut.backgroundColor = kBasicColor;
        _confirmOderBut.layer.cornerRadius = kMaric;
        [_confirmOderBut setTitleColor:kWhiteColor forState:(UIControlStateNormal)];
        [_confirmOderBut setTitle:@"确认订单并预约" forState:(UIControlStateNormal)];
        _confirmOderBut.titleLabel.font = kFont(14);
        [self addSubview:_confirmOderBut];

        
    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
